import request from '@/utils/request'

/***-------------------------------------------消费品订单----------------------------------------- */
export function listOrderConsumer(params) {
  return request({
    url: '/analy/system/orderConsumerAnaly/list',//  /oms/system/orderConsumer/list
    method: 'get',
    params
  })
}

   //消费品地址修改
   export function editOrderConsumer(data) {
    return request({
      url: '/oms/system/orderConsumer/update',
      method: 'post',
      data
    })
  }

  //查询商品列表
  export function listGoodsName(params) {
    return request({
      url: '/oms/system/orderConsumer/listGoodsName',
      method: 'get',
      params
    })
  }

/***-------------------------------------------竞价品订单----------------------------------------- */
export function listOrderInfo(params) {
    return request({
      url: '/analy/system/orderInfoAnaly/list',
      method: 'get',
      params
    })
  }

  //竞价品地址修改
  export function editOrderInfo(data) {
    return request({
      url: '/oms/system/orderInfo/update',
      method: 'post',
      data
    })
  }

   //查询商品列表
   export function listGoodsNameOrderInfo(params) {
    return request({
      url: '/oms/system/orderInfo/listGoodsName',
      method: 'get',
      params
    })
  }
/***-------------------------------------------开馆之礼订单----------------------------------------- */
export function listOrderGift(params) {
    return request({
      url: '/analy/system/orderGiftAnaly/list',//  /oms/system/orderGift/list
      method: 'get',
      params
    })
  }

   //开馆之礼地址修改
   export function editOrderGift(data) {
    return request({
      url: '/oms/system/orderGift/update',
      method: 'post',
      data
    })
  }

   //查询商品列表
   export function listGoodsNameOrderGift(params) {
    return request({
      url: '/oms/system/orderGift/listGoodsName',
      method: 'get',
      params
    })
  }


/***-------------------------------------------转售订单----------------------------------------- */
export function listOrderResell(params) {
    return request({
      url: '/analy/system/resellOrderAnaly/list',
      method: 'get',
      params
    })
  }

  /***-------------------------------------------奖品订单----------------------------------------- */
export function listOrderPrize(params) {
    return request({
      url: '/oms/system/orderPrize/list',
      method: 'get',
      params
    })
  }

     //奖品地址修改
     export function editOrderPrize(data) {
        return request({
          url: '/oms/system/orderPrize/update',
          method: 'post',
          data
        })
      }

  /***-------------------------------------------物流信息----------------------------------------- */
  //物流接口列表信息
  export function listLogisticsType(params) {
    return request({
      url: '/third/system/express/list',
      method: 'get',
      params
    })
  }

    //快递信息查询
    export function listLogisticsInfo(params) {
      return request({
        url: '/third/app/kd/kdInfo',
        method: 'get',
        params
      })
    }

/***-------------------------------------------置换订单----------------------------------------- */
export function listOrderReplace(params) {
  return request({
    url: '/oms/system/orderReplacement/list',//  /oms/system/orderConsumer/list
    method: 'get',
    params
  })
}

//消费品地址修改
export function editOrderReplace(data) {
  return request({
    url: '/oms/system/orderReplacement/update',
    method: 'post',
    data
  })
}

/***-------------------------------------------止拍寄售订单----------------------------------------- */
export function listOrderConsign(params) {
  return request({
    url: '/oms/system/stopOrderConsign/list',//  /oms/system/stopOrderConsign/list
    method: 'get',
    params
  })
}